﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TemplateMethodPattern
{
    /// <summary>
    /// 银行客户端  定期
    /// </summary>
    public class ClientRegular : Client
    {
        public override double GetInterest(double amount)
        {
            return amount * 0.01;
        }
        //public override void Show(string userName, double amount, double interrest)
        //{
        //    Console.WriteLine("尊敬的{0}客户，您的余额为{1},利息为{2},总金额为{3}", userName, amount, interrest, amount + interrest);
        //}
    }
}
